package com.ilink.groundservice.entity.PO.culture;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @TableName artwork
 */
@TableName(value ="artwork")
@Data
public class Artwork implements Serializable {
    @TableId(type = IdType.INPUT)
    private Long artworkId;

    private String title;

    private String tag;     //纹样标签

    private String userName;

    private Integer likes;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    private String imagePath;

    private static final long serialVersionUID = 1L;
}